package com.dumas.dao;

import com.dumas.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {

    //增加图书
    void addBooks(Books books);

    //删除图书
    void deleteBooks(@Param("bookID") int id);

    //更新图书
    void updateBooks(Books books);

    //查询图书
    Books queryBooksById(int bookID);

    //搜索图书
    List<Books> queryBooksByName(String bookName);

    //查询全部图书
    List<Books> queryAllBooks();

}
